package com.service;

import java.sql.Timestamp;
import java.util.List;

import com.model.DifficultyInfo;
import com.model.Paper;
import com.model.Programming;
import com.model.RankInfo;
import com.model.Student;
import com.model.User;

public interface ExamService {

    public List<Programming> getProgramList(int paperId, Integer uid, String flag);

    public void saveAnswer(Programming pro, Paper paper, User user, String answer, int score, Timestamp submittime);

    public List checkUser(int id, String answer, int type, Paper paper, User user);

    public List checkStudent(int id, String answer, int type, Paper paper, Student stu);

    void classSaveAnswer(Programming pro, Paper paper, Student stu, String answer, int score);

    public List paperInfo(int uid, int pid, String flag);

    public List<?> showRank();

    public List<RankInfo> rankInfo(int id);

    public List<?> showDifficulty();

    public List<DifficultyInfo> DifficultyInfo(int id);

}
